package cn.wellwan.redislock;

/**
 * Copyright (C),微动天下
 * FileName: DistributedLock
 * Author:   maokai
 * Date:     2019/1/22 10:10
 * Description:
 */
public interface DistributedLock {
    /**
     * 获取锁
     * @author
     * @return 锁标识
     */
    String acquire();

    /**
     * 释放锁
     * @author
     * @param indentifier
     * @return
     */
    boolean release(String indentifier);
}
